#ifndef FILEPROGRESSBAR_H
#define FILEPROGRESSBAR_H

#include <QWidget>
#include<QCloseEvent>
namespace Ui {
class FileProgressBar;
}

class FileProgressBar : public QWidget
{
    Q_OBJECT

public:
    explicit FileProgressBar(QWidget *parent = nullptr);
    ~FileProgressBar();

    void setProgressBar(const QString&text);

    void setProgressValue(int value);
    bool getCloseBtnEnabled() const;
    void setCloseBtnEnabled(bool newCloseBtnEnabled);

    void closeEvent(QCloseEvent *event) override;

signals:
    void showTip(const QString&msg);
private:
    Ui::FileProgressBar *ui;

    bool closeBtnEnabled;
};

#endif // FILEPROGRESSBAR_H
